package com.senriot.quickup.config.payment.interceptor


import com.egzosn.pay.ali.api.AliPayService
import com.egzosn.pay.ali.bean.AliPayMessage
import com.egzosn.pay.common.api.PayMessageInterceptor
import org.slf4j.LoggerFactory

class AliPayInterceptor : PayMessageInterceptor<AliPayMessage, AliPayService>
{

    private val log = LoggerFactory.getLogger(this.javaClass)

    override fun intercept(payMessage: AliPayMessage?,
                           context: MutableMap<String, Any>?,
                           payService: AliPayService?): Boolean
    {
        val outTradeNo = payMessage?.outTradeNo
        log.debug("alipay outTradeNo $outTradeNo")
        return true
    }
}
